package com.tcm.entity.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author Guqier
 * @version 1.0
 * @date 2023/7/2 17:45
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TeacherUpdateDto {

    private Long id;// 教师ID

    @NotBlank(message = "name不能为空")
    private String name;// 姓名

    @NotBlank(message = "account不能为空")
    private String account;// 账号（工号）

    private String phone;// 电话

    private String email;// 邮箱

    @NotNull(message = "gender不能为空")
    private Integer gender;// 性别

}
